import logging
import time

print(time.time())
print(time.localtime())
print(time.asctime())
print(time.ctime())

logging.basicConfig(level=logging.DEBUG, filename='log.log', filemode='a')
logging.info("info")
logging.debug("debug")
logging.warning("warning")
logging.error("error")
